package com.nicefact.mailmonitor.vo;

import java.io.Serializable;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable(detachable = "true")
public class MailReport implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	@PrimaryKey
	private Key key;

	@Persistent
	private String name = "";
	@Persistent
	private String month;
	@Persistent
	private String email;
	@Persistent
	private Integer sentToSameDomain = 0;
	@Persistent
	private Integer sentToOtherDomain = 0;
	@Persistent
	private Integer receivedFromSameDomain = 0;
	@Persistent
	private Integer receivedFromOtherDomain = 0;
	@Persistent
	private String message = "Active";
	
	@Persistent
	private String createdBy;
	
	public String getCreatedBy() {
		return createdBy;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public String getName() {
		return name;
	}

	public String getMessage() {
		return message;
	}

	public Key getKey() {
		return key;
	}

	public void setKey(Key key) {
		this.key = key;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMonth() {
		return month;
	}

	public void setMonth(String month) {
		this.month = month;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Integer getSentToSameDomain() {
		return sentToSameDomain;
	}

	public void setSentToSameDomain(Integer sentToSameDomain) {
		this.sentToSameDomain = sentToSameDomain;
	}

	public Integer getSentToOtherDomain() {
		return sentToOtherDomain;
	}

	public void setSentToOtherDomain(Integer sentToOtherDomain) {
		this.sentToOtherDomain = sentToOtherDomain;
	}

	public Integer getReceivedFromSameDomain() {
		return receivedFromSameDomain;
	}

	public void setReceivedFromSameDomain(Integer receivedFromSameDomain) {
		this.receivedFromSameDomain = receivedFromSameDomain;
	}

	public Integer getReceivedFromOtherDomain() {
		return receivedFromOtherDomain;
	}

	public void setReceivedFromOtherDomain(Integer receivedFromOtherDomain) {
		this.receivedFromOtherDomain = receivedFromOtherDomain;
	}

	@Override
	public String toString() {
		return "MailReport [name=" + name + ", month=" + month + ", email="
				+ email + ", sentToSameDomain=" + sentToSameDomain
				+ ", sentToOtherDomain=" + sentToOtherDomain
				+ ", receivedFromSameDomain=" + receivedFromSameDomain
				+ ", receivedFromOtherDomain=" + receivedFromOtherDomain + "]";
	}

}
